#ifndef SERIAL_TESTE_H
#define SERIAL_TESTE_H

#include <avr/io.h>

#define SERIAL_BAUD 57600
#define SERIAL_BUF_SIZE 100

extern volatile char msg_rx[SERIAL_BUF_SIZE];
extern volatile char msg_tx[SERIAL_BUF_SIZE];
extern volatile uint8_t rx_buf_pos;
extern volatile uint8_t tx_buf_pos;
extern volatile uint8_t serial_rx;

extern void serial_init(unsigned int bittimer);
extern void serial_transmit(char* msg);
extern void serial_write(unsigned char c);
extern unsigned char serial_read(void);

#endif /* SERIAL_TESTE_H */
